package com.artpri.model;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * FreightTemplate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "freight_template", catalog = "jpw")
public class FreightTemplate implements java.io.Serializable {

	// Fields

	private Integer ftId;
	private Integer userNum;
	private String ftName;
	private String ftAddress;
	private String ftDeliverTime;
	private Integer ifreeship;
	private String ftPricing;
	private Integer ifcondition;
	
	
	
	// Constructors

	/** default constructor */
	public FreightTemplate() {
	}

	/** full constructor */
	public FreightTemplate(Integer userNum, String ftName, String ftAddress,
			String ftDeliverTime, Integer ifreeship, String ftPricing,
			Integer ifcondition) {
		this.userNum = userNum;
		this.ftName = ftName;
		this.ftAddress = ftAddress;
		this.ftDeliverTime = ftDeliverTime;
		this.ifreeship = ifreeship;
		this.ftPricing = ftPricing;
		this.ifcondition = ifcondition;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ft_id", unique = true, nullable = false)
	public Integer getFtId() {
		return this.ftId;
	}

	public void setFtId(Integer ftId) {
		this.ftId = ftId;
	}

	@Column(name = "user_num", nullable = false)
	public Integer getUserNum() {
		return this.userNum;
	}

	public void setUserNum(Integer userNum) {
		this.userNum = userNum;
	}

	@Column(name = "ft_name", nullable = false, length = 50)
	public String getFtName() {
		return this.ftName;
	}

	public void setFtName(String ftName) {
		this.ftName = ftName;
	}

	@Column(name = "ft_address", nullable = false, length = 50)
	public String getFtAddress() {
		return this.ftAddress;
	}

	public void setFtAddress(String ftAddress) {
		this.ftAddress = ftAddress;
	}

	@Column(name = "ft_deliver_time", nullable = false, length = 10)
	public String getFtDeliverTime() {
		return this.ftDeliverTime;
	}

	public void setFtDeliverTime(String ftDeliverTime) {
		this.ftDeliverTime = ftDeliverTime;
	}

	@Column(name = "ifreeship", nullable = false)
	public Integer getIfreeship() {
		return this.ifreeship;
	}

	public void setIfreeship(Integer ifreeship) {
		this.ifreeship = ifreeship;
	}

	@Column(name = "ft_pricing", nullable = false, length = 10)
	public String getFtPricing() {
		return this.ftPricing;
	}

	public void setFtPricing(String ftPricing) {
		this.ftPricing = ftPricing;
	}

	@Column(name = "ifcondition", nullable = false)
	public Integer getIfcondition() {
		return this.ifcondition;
	}

	public void setIfcondition(Integer ifcondition) {
		this.ifcondition = ifcondition;
	}
	
	
}